<include file="public@storage"/>
<style>
    #form {
        margin-top: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .error {
        border-color: red;
    }



</style>
</head>
<body>


<div>
    <form class="form-horizontal table" id="form" onsubmit="return checkMachine()"
          action="{:url('storage/Machine/addMachine')}" method="post">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">机器信息</h3>
            </div>
            <div class="panel-body">
                <div class="form-group">


                    <div class="col-md-3 control-label">
                        <label for="machineId">机器ID：</label>
                    </div>

                    <div class="col-md-2">
                        <input type="text" name="machineId" id="machineId" class="form-control" placeholder="必须填">
                        <span id="machineIdError" class="error"></span>
                    </div>


                    <div class="col-md-3 control-label">
                        <label for="storageSelect">所属仓库：</label>
                    </div>
                    <div class="col-md-2">

                        <select id="storageSelect" name="storageSelect" class="selectpicker  form-control" title="请选择仓库(必选)">
                            <volist id="uuid" name="storageInfo" id="value">
                                <option value="{$value['uuid']}">{$value['name']}</option>
                            </volist>
                        </select>
                        <span id="storageSelectError" class = error></span>
                    </div>



                </div>


                <div class="form-group">
                    <div class="col-md-3 control-label">
                        <label for="productLine">产线：</label>
                    </div>
                    <div class="col-md-2">
                        <input type="text" name="productLine" id="productLine" class="form-control" placeholder="必须填">
                        <span id="productLineError" class="error"></span>
                    </div>

                    <div class="col-md-3 control-label">
                        <label for="seatNumber">站位数量：</label>
                    </div>
                    <div class="col-md-2">
                        <input type="text" name="seatNumber" id="seatNumber" class="form-control" placeholder="必须填">
                        <span id="seatNumberError" class = error></span>
                    </div>
                </div>

            </div>
            <div class="form-group text-center">
                <button type="submit" class="mui-btn mui-btn--raised mui-btn--primary" id="submit">添加</button>
                <button type='button' class="mui-btn mui-btn--raised mui-btn--primary" onclick="history.back(-1)">取消
                </button>
            </div>
        </div>
    </form>
</div>
</body>
<script type="text/javascript" src="__STATIC__/storage/js/machine/check.js"></script>
<script type="text/javascript">
</script>
</html>>